package study.cdc.debezium.kafka.listener;

import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.clients.consumer.Consumer;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class DebeziumListener {

    @KafkaListener(topics = "wyk_sandbox.ds_canal.user_base")
    public void onMessage(ConsumerRecord<String, String> record, Consumer consumer) {
        String value = record.value();
        log.info(">>>>>> {}", value);
    }
}
